<div class="infobox-s-<?= $data->status;?>">

	<div class="info-block">
		<a class="ava" href="/user/<?= $data->owner->id;?>"><? $this->widget('ext.gravatar.Gravatar', array('size'=>25, 'email' => $data->owner->email, 'htmlOptions' => array('alt' => $data->owner->username))); ?></a>
		<a class="title" title="<?= $data->title;?>" href="/service/<?= $data->id?>">
            <?= YText::characterLimiter($data->title, 50);?>
		</a>
		<div class="clear"></div>
		<div  class="info-data">
			<span class="status-<?= $data->status;?>">
				<?= $data->getStatusName();?>
			</span>
			<span class="align-right">
                <?= Yii::t("lan","{n} просмотр|{n} просмотра|{n} просмотров",$data->count_view);?> ::
				<?= DateTimer::getPeriod($data->t_create);?>
			</span>
			<span class="align-left">
				<?= $data->owner->getIconOnline();?>
				<?= CHtml::link($data->owner->username, "/user/" . $data->owner->id);?>
				&nbsp;|&nbsp;
				<a href="/service/<?= $data->id?>#comment">
					<?= $data->cont_comments > 0 ? Yii::t('app', "{n} предложение|{n} предложения|{n} предложений", $data->cont_comments): "Нет предложений";?>
				</a>
				&nbsp;|&nbsp;
				Теги:
				<?  $i = 1; foreach ($data->tags as $tag) { ?>
				<?= CHtml::link($tag->name, "/service/list?filter=" . $tag->name) ?><?= count($data->tags) > $i ? ", " : ""; ?>
				<? $i++; }?>
			</span>
			<div class="clearfix"></div>
		</div>
		<div class="clearfix"></div>
	</div>
	<? if (Y::user()->isModerator()) { ?>
	<div class="buttons tiptip actionDiv">
		<a title="Удалить" class="button left" href="/service/delete/<?= $data->id;?>" onclick="return confirm('Вы уверены в том, что собираетесь сделать?')">
			<span class="icon icon186"></span>
		</a>
	</div>
	<? } ?>
	<div class="clearfix"></div>
</div>
